package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo8 {
    public static void main(String[] args) {
        try (OutputStream outputstream= new FileOutputStream("./test.txt",true)){
            // outputstream.write(99);
            // outputstream.write(100);
            // outputstream.write(101);
            // outputstream.write(102); 
            byte[] bytes = {99,100,101,102};
             outputstream.write(bytes);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } 
    }


}
